<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>实现一个三角形</title>
<style type="text/css">
</style>
</head>
<body>
<pre>
/*三角形的实现原理是利用了元素边框连接处的等分原理。*/
.triangle {
  width: 0;
  height: 0;
  border-width: 100px;
  border-style: solid;
  border-color: tomatotransparenttransparenttransparent;
}
<a href="http://cavszhouyou.top/Demo-Display/Triangle/index.html" rel="nofollow">《三角形 demo 展示》</a>
</pre>
<script type="text/javascript">
</script>
</body>
</html>